export interface AgentViewInfo extends AgentBaseInfo {
  agent_files_path: string
}

export interface AgentBaseInfo {
  agent_id: string | undefined
  /** 智能体名称 */
  agent_name: string
  /** 智能体描述 */
  agent_describe: string
  /** 智能体类型 */
  agent_type: string
  /** 智能体配置文件路径 */
  agent_path: string
  /** 图片 */
  agent_image_id: string
}

export interface TableRequestData {
  /** 智能体类型 */
  agent_type?: string
  /** 智能体名称 */
  agent_name?: string
  /** 发布时间 */
  publish_time?: string
  /** 截至时间 */
  end_time?: string
}

export interface PageTableRequestData extends TableRequestData {
  /** 当前页码 */
  current_page: number
  /** 查询条数 */
  size?: number
}

export interface TableData {
  create_user: {
    user_id: string
    user_name: string
    user_position: string
  }
  create_time: string
}

export interface AgentTableData extends AgentBaseInfo, TableData {}
export type SearchAgentTableResponseData = ApiResponseData<{
  total_pages: number
  total_count: number
  page_info: AgentTableData[]
}>
export type AgentInfoResponseData = ApiResponseData<AgentBaseInfo>
export type AgentViewInfoResponseData = ApiResponseData<AgentViewInfo>
